package db_modle

type RiskRuleBase struct {
	Oid         uint   `json:"oid" gorm:"PRIMARY_KEY"`
	T1          uint   `json:"t1_1" gorm:"NOT NULL"`
	Min         uint   `json:"min" `
	Max         uint   `json:"max" `
	CheckScene  int8   `json:"check_scene" gorm:"NOT NULL"`
	Explanation string `json:"explanation" gorm:"type:varchar(255);NOT NULL"`
	InUse       int8   `json:"in_use" gorm:"type:tinyint(1);NOT NULL`
	Score       int    `gorm:"NOT NULL"`
}

func (RiskRuleBase) TableName() string {
	return "risk_rule_base"
}
